package org.coco24.pmstudio

import com.badlogic.gdx.scenes.scene2d.ui.Table
import com.kotcrab.vis.ui.util.TableUtils
import com.kotcrab.vis.ui.widget.VisTable
import com.kotcrab.vis.ui.widget.VisWindow
import com.kotcrab.vis.ui.widget.tabbedpane.Tab
import com.kotcrab.vis.ui.widget.tabbedpane.TabbedPane

class PokemonListWindow: VisWindow("宝可梦列表")
{
    val containerTable = VisTable()
    val tabbedPane = TabbedPane()
    init
    {
        TableUtils.setSpacingDefaults(this);
        setResizable(true);
//        addCloseButton();
        closeOnEscape();

        tabbedPane.add(TextTab("全部"))
        tabbedPane.add(TextTab("已录入"))
        tabbedPane.add(TextTab("未录入"))

        add(tabbedPane.table).expandX().fillX();
        row();
        add(containerTable).expand().fill();
        pack()

    }

    override fun fadeIn(): VisWindow
    {
        super.fadeIn()
        centerWindow()
        return this
    }
}